import 'package:flutter/material.dart';

class VisitMostPosts extends StatefulWidget {
  const VisitMostPosts({super.key});

  @override
  State<VisitMostPosts> createState() => _VisitMostPostsState();
}

class _VisitMostPostsState extends State<VisitMostPosts> {
  @override
  Widget build(BuildContext context) {
    return Column(
      crossAxisAlignment: CrossAxisAlignment.stretch, //宽度撑满
      children: [
        const Text(
          '最近文章',
          textAlign: TextAlign.center,
        ),
        Wrap(
          spacing: 8.0, // 主轴(水平)方向间距
          runSpacing: 4.0, // 纵轴（垂直）方向间距
          children: [
            GestureDetector(
              child: const Padding(
                padding: EdgeInsets.all(8.0),
                child: Text('dafta'),
              ),
              onTap: () => {},
            ),
          ],
        ),
      ],
    );
  }
}
